
/*
 * @项目名称: 模板开发
 * @FilePath: /meek/src/lyr/image/imageevent.js
 * @Author: 1106408264@qq.com
 * @Date: 2017-06-07T09:34:10+08:00
 * @LastEditors: guojinghao20ni@163.com
 * @LastEditTime: 2017-07-14T16:33:04+08:00
 * Copyright (c) 2018-2022
 */

/**
 * Created by zhangyong on 2017/6/6.
 */

import BaseEvent from '../../core/baseevent'

export default class ImageEvent extends BaseEvent {
  constructor (type, image) {
    super(type)

    this.image = image
  }

}


ImageEvent.Type = {

  /**
   * Triggered when an image starts loading.
   * @api
   */
  IMAGELOADSTART: 'imageloadstart',

  /**
   * Triggered when an image finishes loading.
   * @api
   */
  IMAGELOADEND: 'imageloadend',

  /**
   * Triggered if image loading results in an error.
   * @api
   */
  IMAGELOADERROR: 'imageloaderror'

}
